<%@ page language="java" import="java.util.*" pageEncoding="utf-8"%>
<%@ taglib uri="/struts-tags" prefix="s" %>
<%
String path = request.getContextPath();
String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
%>

<!DOCTYPE html>
<html lang="en">
	<!-- container-fluid -->
	<head>
		<title>设备管理系统</title>
		<meta charset="UTF-8" />
        <meta name="viewport" content="width=device-width, initial-scale=1.0" />
		<link rel="stylesheet" href="${pageContext.request.contextPath}/css/bootstrap.min.css" />
		<link rel="stylesheet" href="${pageContext.request.contextPath}/css/bootstrap-responsive.min.css" />
		<link rel="stylesheet" href="${pageContext.request.contextPath}/css/fullcalendar.css" />	
		<link rel="stylesheet" href="${pageContext.request.contextPath}/css/unicorn.main.css" />
		<link rel="stylesheet" href="${pageContext.request.contextPath}/css/unicorn.grey.css" class="skin-color" />
		<!-- start jquery alert-->
		<link href="css/jquery.alerts.css" rel="stylesheet" type="text/css" media="screen" />
		 <!-- end jquery alert-->
	<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
	</head>
	<body>	
		<%@ include file="/WEB-INF/jsp/public/topMenu.jspf" %>     
       <div id="sidebar"> 
			<a href="index.jsp" class="visible-phone"><i class="icon icon-home"></i> 首页</a>
			<ul>
				<li class="active"><a href="index.jsp"><i class="icon icon-home"></i> <span>首页</span></a></li>
				<s:iterator value="#application.topPrivilegeList">
				
				     <s:if test="#session.user.hasPrivilegeByName(name)">
						<li class="submenu">
							<a href="#"><i class="${imgClass}"></i> <span>${name}</span> </a>
							<ul>
							    <s:iterator value="children">							    
							    <s:if test="#session.user.hasPrivilegeByName(name)">
								<li><a href="${pageContext.request.contextPath}${url}.action">${name}</a></li>
								</s:if>
								</s:iterator>
							</ul>
						</li>
					</s:if>
				</s:iterator>
				
			</ul>
		
		</div>
		
		<div id="style-switcher">
			<i class="icon-arrow-left icon-white"></i>
			<span>主题:</span>
			<a href="#grey" style="background-color: #555555;border-color: #aaaaaa;"></a>
			<a href="#blue" style="background-color: #2D2F57;"></a>
			<a href="#red" style="background-color: #673232;"></a>
		</div>
		
		<div id="content">
			<div id="content-header">
				<h1>控制台</h1>

			</div>
			<div id="breadcrumb">
				<a href="index.jsp" title="首页" class="tip-bottom"><i class="icon-home"></i> 首页</a>
			</div>
			<div class="container-fluid">
				<div class="row-fluid">
					<div class="span12">					
						 
					</div>	
				</div>
				<div class="row-fluid">
					<div class="span12">
						<div class="alert alert-info">
							欢迎来到<strong>设备后台管理系统</strong>. 别忘记退出哦!
							<a href="#" data-dismiss="alert" class="close">×</a>
						</div>
						<div class="widget-box">
							<div class="widget-title"><span class="icon"><i class="icon-signal"></i></span><h5>网站统计</h5><div class="buttons"><a href="#" class="btn btn-mini"><i class="icon-refresh"></i> 状态</a></div></div>
							<div class="widget-content">
								<div class="row-fluid">
								<div class="span4">
									<ul class="site-stats">
										<li><i class="icon-user"></i> <strong>1433</strong> <small>所有用户</small></li>
										<li><i class="icon-arrow-right"></i> <strong>16</strong> <small>新用户 (上周)</small></li>
										<li class="divider"></li>
										<li><i class="icon-align-center"></i> <strong>259</strong> <small>总设备</small></li>
										<li><i class="icon-tag"></i> <strong>8650</strong> <small>总共申请</small></li>
										<li><i class="icon-repeat"></i> <strong>29</strong> <small>待办</small></li>
									</ul>
								</div>
								<div class="span8">
									<div class="chart"></div>
								</div>	
								</div>							
							</div>
						</div>					
					</div>
				</div>
				<div class="row-fluid">
					<div class="span6">
						<div class="widget-box">
							<div class="widget-title"><span class="icon"><i class="icon-file"></i></span><h5>最近消息</h5></div>
							<div class="widget-content nopadding">
								<ul class="recent-comments">
								   <s:iterator value="recordList">
									<li>
										<div class="user-thumb">
											<img width="40" height="40" alt="User" src="img/demo/av1.jpg" />
										</div>
										<div class="comments">
											<span class="user-info"> 用户: ${author.name } 时间: ${postTime }</span>
											<p>
												<s:a action="topic_show?id=%{id}"><h5>${title}</h5></s:a>
											</p>
										</div>
									</li>
							    </s:iterator>
								</ul>
							</div>
							<%@ include file="/WEB-INF/jsp/public/homePageView.jspf" %>
							<s:form action="forum_show?id=%{id}"></s:form> 
						</div>
					</div>
					<div class="span6">
						<div class="widget-box">
							<div class="widget-title"><span class="icon"><i class="icon-comment"></i></span><h5>最新评论</h5></div>
							<div class="widget-content nopadding">
								<ul class="recent-comments">
								<s:iterator value="recordList1">
									<li>
										<div class="user-thumb">
											<img width="40" height="40" alt="User" src="img/demo/av1.jpg" />
										</div>
										<div class="comments">
											<span class="user-info"> 用户: ${author.name } 时间: ${postTime }</span>
											<p>
												<s:a action="topic_show?id=%{id}"><h5>${title}</h5></s:a>
											</p>
										</div>
									</li>
							    </s:iterator>
									
								</ul>
							</div>
							<%@ include file="/WEB-INF/jsp/public/homePageView.jspf" %>
							<s:form action="forum_show?id=%{id}"></s:form> 
						</div>
					</div>
				</div>
				<div class="row-fluid">
					<div class="span12">
						<div class="widget-box widget-calendar">
							<div class="widget-title"><span class="icon"><i class="icon-calendar"></i></span><h5>日历</h5></div>
							<div class="widget-content nopadding">
								<div class="calendar"></div>
							</div>
						</div>
					</div>
				</div>
				<div class="row-fluid">
					<div id="footer" class="span12">
						2015 &copy; 郑州轻工业学院 </div>
				</div>
			</div>
		</div>
		

            <script src="${pageContext.request.contextPath}/js/excanvas.min.js"></script>
            <script src="${pageContext.request.contextPath}/js/jquery.min.js"></script>
            <script src="${pageContext.request.contextPath}/js/jquery.ui.custom.js"></script>
            <script src="${pageContext.request.contextPath}/js/bootstrap.min.js"></script>
            <script src="${pageContext.request.contextPath}/js/jquery.flot.min.js"></script>
            <script src="${pageContext.request.contextPath}/js/jquery.flot.resize.min.js"></script>
            <script src="${pageContext.request.contextPath}/js/jquery.peity.min.js"></script>
            <script src="${pageContext.request.contextPath}/js/fullcalendar.min.js"></script>
            <script src="${pageContext.request.contextPath}/js/unicorn.js"></script>
            <script src="${pageContext.request.contextPath}/js/unicorn.dashboard.js"></script>
              <!-- start jquery alert-->
		   <script src="${pageContext.request.contextPath}/js/jquery.alerts.js" type="text/javascript"></script>
		   <script src="${pageContext.request.contextPath}/js/jquery.myalert.js" type="text/javascript"></script>
		   <!-- end jquery alert-->
	</body>
</html>

